/**
 * 
 */
package com.blog.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author cloris
 *
 */
@Controller
@RequestMapping(value = "/profile.do")
public class ProfileController extends BaseAction{
	
	@RequestMapping(params = "details")
	@ResponseBody
	public void getProfileDetails(ServletRequest request, ServletResponse response){
		HttpServletRequest hrequest = (HttpServletRequest) request;   
        try {
			hrequest.getRequestDispatcher("/views/profile/blogOwnerInfo.jsp").forward(request, response);
		} catch (ServletException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
